package com.oak.interviewdemo.sys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.oak.interviewdemo.sys.entity.User;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author guoxy
 * @since 2020-05-10
 */
public interface IUserService extends IService<User> {

    /**
     * 分页查询
     *
     * @param pageSize
     * @param current
     * @param user
     * @return
     */
    IPage<User> selectUserPage(Integer current,Integer pageSize,User user);


    /**
     * 验证用户名密码
     *
     * @param username
     * @param pwd
     * @return
     */
    boolean checkLogin(String username,String pwd);
}
